Broadway: Allow Compilation on Windows/MSVC
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 1 Jul 2013 12:51:03 +0000 (14:51 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 1 Jul 2013 12:51:03 +0000 (14:51 +0200)
commit2268e9d6c98c89fd42ee643aeadc6ab971178a49
treeff26c6216c0c4881b5c7ced1dd3b5691af7a5f29
parent4b49c44b0ab5cd795738680c02019297c36e22ac
Broadway: Allow Compilation on Windows/MSVC

-Don't include unistd.h unconditionally as it's not available in Visual
 Studio, but include io.h where necessary.
-Avoid C99isms, and use _chsize_s in place of ftruncate when unistd.h is
 not available (as in the case of Visual Studio)
gdk/broadway/broadway-server.c
gdk/broadway/gdkbroadway-server.c
gdk/broadway/gdkdisplay-broadway.c
gdk/broadway/gdkkeys-broadway.c